package io.github.lee.core.ui.ba
//
//import android.content.Context
//import android.view.inputmethod.InputMethodManager
//import android.widget.EditText
//import androidx.databinding.BindingAdapter
//import io.github.lee.android.lib.databinding.common.showKeyboard
//
//
//@BindingAdapter(value = ["request_focusable", "show_keyboard"], requireAll = false)
//fun EditText.requestFocusable(requestFocusable: Boolean? = true, showKeyboard: Boolean? = false) {
//    if (requestFocusable==true) {
//        isFocusable = true
//        isFocusableInTouchMode = true
//        requestFocus()
//        setSelection(text.toString().length)
//    }
//    if (showKeyboard == true) {
//        showKeyboard(context, this)
//    }
//}